﻿// --------------------------------
// <copyright file="IProductService.cs" company="OpenTicket">
//     Microsoft Public License (Ms-PL)
// </copyright>
// <author>Glenn</author>
// ---------------------------------

using System;
using System.Collections.Generic;


namespace OpenTicket.Services
{
    /// <summary>
    /// Servicelayer for products
    /// </summary>
    public interface IProductService
    {
        /// <summary>
        /// Gets the product by product code.
        /// </summary>
        /// <param name="productCode">The product code.</param>
        /// <returns>The Product</returns>
        OpenTicket.Model.Product GetProductByProductCode(string productCode);

        /// <summary>
        /// Saves the specified p.
        /// </summary>
        /// <param name="product">The product.</param>
        /// <returns>The Saved Product</returns>
        OpenTicket.Model.Product Save(OpenTicket.Model.Product product);

        /// <summary>
        /// Deletes the specified product.
        /// </summary>
        /// <param name="product">The product.</param>
        void Delete(OpenTicket.Model.Product product);

        IEnumerable<Model.Product> GetProducts();
    }
}
